package com.cysyz.web.modules.base.lock.service;

import com.cysyz.web.modules.base.lock.LockAble;
import com.cysyz.web.modules.base.lock.LockStatus;
import com.cysyz.web.modules.base.support.service.BaseService;
import org.springframework.stereotype.Service;

/**
 * Created by cuiyong on 15/6/24.
 */
@Service
public class LockService extends BaseService {
    public LockAble lock(LockAble lockAble) {
        lockAble.setLockStatus(LockStatus.LOCK);
        return lockAble;
    }

    public LockAble unLock(LockAble lockAble) {
        lockAble.setLockStatus(LockStatus.UNLOCK);
        return lockAble;
    }

}
